From 03ea23b8e70cac9649ef0ed9793ddb4baf24894a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 11 Jun 2014 14:02:55 +0200 Subject: Add spec file and rp target. --- Makefile.am | 25 +++++++++++++++++++++++++ miav.spec | 31 +++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 miav.spec diff --git a/Makefile.am b/Makefile.am index 3db006e..5b8072b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,28 @@ AUTOMAKE_OPTIONS = gnu SUBDIRS = pixmaps tools src etc man DISTDIRS = pixmaps tools src etc man + +EXTRA_DIST = \ + hugin/hugin.h \ + hugin/hugin.hpp \ + hugin/hugin.c \ + hugin/hugin_util.h \ + hugin/hugin_filter.h \ + hugin/hugin_syslog.h \ + hugin/hugin_syslog.c + +rpm: + @echo "## Creating miav.rpm" + @echo "# Delete old rpmbuild (if one exists):" + rm -Rf rpmbuild + + @echo "# Create rpmbuild directories:" + mkdir -p rpmbuild/{RPMS,BUILD,SOURCES} + make dist + cp miav-0.4.0.tar.gz rpmbuild/SOURCES + + rpmbuild -ba miav.spec --define="%_topdir ${PWD}/rpmbuild" +# rpmbuild -bb miav.spec --define="%_topdir ${PWD}/rpmbuild" + + mv rpmbuild/RPMS/`arch`/miav-*.rpm . + diff --git a/miav.spec b/miav.spec new file mode 100644 index 0000000..3813f2a --- /dev/null +++ b/miav.spec @@ -0,0 +1,31 @@ +Summary: MIaV - The Multicast Image and Video project +Name: miav +Version: 0.4.0 +Release: 1 +License: GPL+ +Group: Multimedia +Source: %{name}-%{version}.tar.gz +URL: http://www.aasimon.org/miav +BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release} + +%description +%{summary} + +%prep +%autosetup + +%build +./configure --prefix=/usr --with-gui --with-server +make + +%install +%make_install + +%files +%defattr(-,root,root,-) +/ + +%changelog +* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-1 +- First Build + -- cgit v1.2.3