From 759a5694418eebbb610a1c83499b41a810bf2512 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 2 Jul 2014 16:07:26 +0200 Subject: Generate .spec files, replacing VERSION via configure. --- configure.ac | 5 ++++- miav-client.spec | 50 ----------------------------------------------- miav-client.spec.in | 50 +++++++++++++++++++++++++++++++++++++++++++++++ miav-server.spec | 56 ----------------------------------------------------- miav-server.spec.in | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 110 insertions(+), 107 deletions(-) delete mode 100644 miav-client.spec create mode 100644 miav-client.spec.in delete mode 100644 miav-server.spec create mode 100644 miav-server.spec.in diff --git a/configure.ac b/configure.ac index 0bfcf6e..bd3f5cc 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # Filename: configure.in AC_INIT(src/miav.cc) -AM_INIT_AUTOMAKE( miav, 0.4.0 ) +AM_INIT_AUTOMAKE( miav, 0.4.1 ) AC_PROG_CXX @@ -189,6 +189,9 @@ if test x$with_test == xyes; then AC_CONFIG_FILES(test/Makefile) fi +AC_CONFIG_FILES(miav-client.spec) +AC_CONFIG_FILES(miav-server.spec) + AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(CXXFLAGS) diff --git a/miav-client.spec b/miav-client.spec deleted file mode 100644 index 2f4c188..0000000 --- a/miav-client.spec +++ /dev/null @@ -1,50 +0,0 @@ -Summary: MIaV client - The Multicast Image and Video project -Name: miav-client -Version: 0.4.0 -Release: 9 -License: GPL+ -Group: Multimedia -Source: miav-%{version}.tar.gz -URL: http://www.aasimon.org/miav -BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release} - -%description -%{summary} - -%prep -rm %{_builddir}/* -Rf -tar xvzf %{_sourcedir}/%{SOURCEURL0} -mv miav-%{version}/* %{_builddir} - -%build -./configure --prefix= --exec-prefix=/usr --with-client --without-server --with-debug -make - -%install -%make_install - -%files -%defattr(-,root,root,-) -/usr/bin/miav -%config(noreplace) /etc/miav/miav.conf - -%changelog -* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-9 -- Fix config filename on server. - -* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-8 -- Fix daemon background mode. - -* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-5 -- Make sure config is not overwritten on update. - -* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-3 -- Make client-only package - -* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-2 -- Bump build number - -* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-1 -- First Build - - diff --git a/miav-client.spec.in b/miav-client.spec.in new file mode 100644 index 0000000..0ace234 --- /dev/null +++ b/miav-client.spec.in @@ -0,0 +1,50 @@ +Summary: MIaV client - The Multicast Image and Video project +Name: miav-client +Version: @VERSION@ +Release: 9 +License: GPL+ +Group: Multimedia +Source: miav-%{version}.tar.gz +URL: http://www.aasimon.org/miav +BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release} + +%description +%{summary} + +%prep +rm %{_builddir}/* -Rf +tar xvzf %{_sourcedir}/%{SOURCEURL0} +mv miav-%{version}/* %{_builddir} + +%build +./configure --prefix= --exec-prefix=/usr --with-client --without-server --with-debug +make + +%install +%make_install + +%files +%defattr(-,root,root,-) +/usr/bin/miav +%config(noreplace) /etc/miav/miav.conf + +%changelog +* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-9 +- Fix config filename on server. + +* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-8 +- Fix daemon background mode. + +* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-5 +- Make sure config is not overwritten on update. + +* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-3 +- Make client-only package + +* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-2 +- Bump build number + +* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-1 +- First Build + + diff --git a/miav-server.spec b/miav-server.spec deleted file mode 100644 index 196bb90..0000000 --- a/miav-server.spec +++ /dev/null @@ -1,56 +0,0 @@ -Summary: MIaV Server - The Multicast Image and Video project -Name: miav-server -Version: 0.4.0 -Release: 9 -License: GPL+ -Group: Multimedia -Source: miav-%{version}.tar.gz -URL: http://www.aasimon.org/miav -BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release} - -%description -%{summary} - -%prep -rm %{_builddir}/* -Rf -tar xvzf %{_sourcedir}/%{SOURCEURL0} -mv miav-%{version}/* %{_builddir} - -%build -./configure --prefix= --exec-prefix=/usr --without-client --with-server --with-debug -make - -%install -%make_install -mkdir -p %{buildroot}/var/log/miavd - -%files -%defattr(-,root,root,-) -/usr/bin/miavd -/var/log/miavd -%attr(755, root, root) /etc/init.d/miavd -%config(noreplace) /etc/miav - -%changelog -* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-9 -- Fix config filename on server. - -* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-8 -- Fix daemon background mode. - -* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-7 -- Make init.d script executable. - -* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-5 -- Make sure config is not overwritten on update. - -* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-3 -- Make server-only package - -* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-2 -- Bump build number - -* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-1 -- First Build - - diff --git a/miav-server.spec.in b/miav-server.spec.in new file mode 100644 index 0000000..4d7a1f7 --- /dev/null +++ b/miav-server.spec.in @@ -0,0 +1,56 @@ +Summary: MIaV Server - The Multicast Image and Video project +Name: miav-server +Version: @VERSION@ +Release: 9 +License: GPL+ +Group: Multimedia +Source: miav-%{version}.tar.gz +URL: http://www.aasimon.org/miav +BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release} + +%description +%{summary} + +%prep +rm %{_builddir}/* -Rf +tar xvzf %{_sourcedir}/%{SOURCEURL0} +mv miav-%{version}/* %{_builddir} + +%build +./configure --prefix= --exec-prefix=/usr --without-client --with-server --with-debug +make + +%install +%make_install +mkdir -p %{buildroot}/var/log/miavd + +%files +%defattr(-,root,root,-) +/usr/bin/miavd +/var/log/miavd +%attr(755, root, root) /etc/init.d/miavd +%config(noreplace) /etc/miav + +%changelog +* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-9 +- Fix config filename on server. + +* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-8 +- Fix daemon background mode. + +* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-7 +- Make init.d script executable. + +* Wed Jun 18 2014 Bent Bisballe Nyeng 0.4.0-5 +- Make sure config is not overwritten on update. + +* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-3 +- Make server-only package + +* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-2 +- Bump build number + +* Wed Jun 11 2014 Bent Bisballe Nyeng 0.4.0-1 +- First Build + + -- cgit v1.2.3