From: Adam Dickmeiss Date: Wed, 22 Dec 2010 13:59:19 +0000 (+0100) Subject: yazpp.spec not generated by configure X-Git-Tag: v1.2.4~6 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=c3690905ad1433956660f0734dae05d800f86eee;p=yazpp-moved-to-github.git yazpp.spec not generated by configure yazpp.spec.in gone. --- diff --git a/configure.ac b/configure.ac index be74661..26a0edd 100644 --- a/configure.ac +++ b/configure.ac @@ -35,7 +35,6 @@ AC_OUTPUT([ doc/local.ent doc/common/Makefile doc/common/print.dsl - yazpp.spec ],[sed s%echo_source=yes%echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config]) diff --git a/yazpp.spec b/yazpp.spec new file mode 100644 index 0000000..a5c2203 --- /dev/null +++ b/yazpp.spec @@ -0,0 +1,69 @@ +Summary: YAZ++ package (main) +Name: yazpp +Version: 1.2.3 +Release: 2 +License: BSD +Group: Applications/Internet +Vendor: Index Data ApS +Source: yazpp-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: pkgconfig, libyaz4-devel >= 4.1.0 +Packager: Adam Dickmeiss +URL: http://www.indexdata.com/yazplusplus + +%description +YAZ++ package. + +%package -n libyazpp4 +Summary: YAZ++ and ZOOM library +Group: Libraries +Requires: libyaz4 >= 4.1.0 + +%description -n libyazpp4 +Libraries for the YAZ++ package. + +%package -n libyazpp4-devel +Summary: Z39.50 Library - development package +Group: Development/Libraries +Requires: libyazpp4 = %{version}, libyaz4-devel + +%description -n libyazpp4-devel +Development libraries and include files for the YAZ++ package. + +%prep +%setup + +%build + +CFLAGS="$RPM_OPT_FLAGS" \ + ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ + --enable-shared --with-yaz=/usr/bin +make CFLAGS="$RPM_OPT_FLAGS" + +%install +rm -fr ${RPM_BUILD_ROOT} +make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \ + libdir=${RPM_BUILD_ROOT}/%{_libdir} install +rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la + +%clean +rm -fr ${RPM_BUILD_ROOT} + +%post -n libyazpp4 -p /sbin/ldconfig +%postun -n libyazpp4 -p /sbin/ldconfig + +%files -n libyazpp4 +%doc README LICENSE NEWS +%defattr(-,root,root) +%{_libdir}/*.so.* + +%files -n libyazpp4-devel +%defattr(-,root,root) +%{_bindir}/yazpp-config +%{_includedir}/yazpp +%{_libdir}/*.so +%{_libdir}/*.a +%{_datadir}/aclocal/yazpp.m4 +%{_mandir}/man?/yazpp-config.* +%{_datadir}/doc/yazpp + diff --git a/yazpp.spec.in b/yazpp.spec.in deleted file mode 100644 index c38812e..0000000 --- a/yazpp.spec.in +++ /dev/null @@ -1,69 +0,0 @@ -Summary: YAZ++ package (main) -Name: yazpp -Version: @VERSION@ -Release: 2 -License: BSD -Group: Applications/Internet -Vendor: Index Data ApS -Source: yazpp-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildRequires: pkgconfig, libyaz4-devel >= 4.1.0 -Packager: Adam Dickmeiss -URL: http://www.indexdata.com/yazplusplus - -%description -YAZ++ package. - -%package -n libyazpp4 -Summary: YAZ++ and ZOOM library -Group: Libraries -Requires: libyaz4 >= 4.1.0 - -%description -n libyazpp4 -Libraries for the YAZ++ package. - -%package -n libyazpp4-devel -Summary: Z39.50 Library - development package -Group: Development/Libraries -Requires: libyazpp4 = %{version}, libyaz4-devel - -%description -n libyazpp4-devel -Development libraries and include files for the YAZ++ package. - -%prep -%setup - -%build - -CFLAGS="$RPM_OPT_FLAGS" \ - ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ - --enable-shared --with-yaz=/usr/bin -make CFLAGS="$RPM_OPT_FLAGS" - -%install -rm -fr ${RPM_BUILD_ROOT} -make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \ - libdir=${RPM_BUILD_ROOT}/%{_libdir} install -rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la - -%clean -rm -fr ${RPM_BUILD_ROOT} - -%post -n libyazpp4 -p /sbin/ldconfig -%postun -n libyazpp4 -p /sbin/ldconfig - -%files -n libyazpp4 -%doc README LICENSE NEWS -%defattr(-,root,root) -%{_libdir}/*.so.* - -%files -n libyazpp4-devel -%defattr(-,root,root) -%{_bindir}/yazpp-config -%{_includedir}/yazpp -%{_libdir}/*.so -%{_libdir}/*.a -%{_datadir}/aclocal/yazpp.m4 -%{_mandir}/man?/yazpp-config.* -%{_datadir}/doc/yazpp -