From 770813660ec5c2af4ffdbf15e71a33ae210d124b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 13 Jan 2009 11:56:28 +0100 Subject: [PATCH] Added RPM spec --- Makefile.am | 4 +++- configure.ac | 1 + debian/rules | 2 +- doc/common | 2 +- yazproxy.spec.in | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 76 insertions(+), 3 deletions(-) create mode 100644 yazproxy.spec.in diff --git a/Makefile.am b/Makefile.am index aea177c..3d0239d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,9 @@ SUBDIRS = src include etc doc ACLOCAL_AMFLAGS = -I m4 -EXTRA_DIST= README LICENSE m4/yazpp.m4 m4/yaz.m4 m4/usemarcon.m4 buildconf.sh +SPEC_FILE=$(PACKAGE).spec +EXTRA_DIST= $(SPEC_FILE) README LICENSE NEWS \ + m4/yazpp.m4 m4/yaz.m4 m4/usemarcon.m4 buildconf.sh dist-hook: if test -x /usr/bin/git -a -d .git; then git log >ChangeLog ; cp ChangeLog $(distdir); fi diff --git a/configure.ac b/configure.ac index 2248ac9..bbfa9b0 100644 --- a/configure.ac +++ b/configure.ac @@ -37,4 +37,5 @@ AC_OUTPUT([ doc/common/Makefile doc/common/print.dsl etc/Makefile + yazproxy.spec ]) diff --git a/debian/rules b/debian/rules index 6b9277c..750e951 100755 --- a/debian/rules +++ b/debian/rules @@ -38,7 +38,7 @@ major=2 config.status: configure dh_testdir # Add here commands to configure the package. - CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-shared --with-xslt=/usr --with-yazpp=/usr/bin --without-usemarcon + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-shared --with-yazpp=/usr/bin --without-usemarcon build: build-stamp diff --git a/doc/common b/doc/common index 95d92dd..eee76a1 160000 --- a/doc/common +++ b/doc/common @@ -1 +1 @@ -Subproject commit 95d92dd6e49fe3807fd1d6c664b3883580290103 +Subproject commit eee76a15493cb3f93cf6b88b9b7d87db17cdc85f diff --git a/yazproxy.spec.in b/yazproxy.spec.in new file mode 100644 index 0000000..fcdf4ed --- /dev/null +++ b/yazproxy.spec.in @@ -0,0 +1,70 @@ +Summary: yazproxy +Name: yazproxy +Version: @VERSION@ +Release: 1 +License: GPL +Group: Applications/Internet +Vendor: Index Data ApS +Source: yazproxy-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: libyazpp3-devel +Packager: Adam Dickmeiss +URL: http://www.indexdata.dk/yazproxy/ + +%description +YAZ Proxy application + +%package -n libyazproxy2 +Summary: YAZ Proxy libraries +Group: Libraries +Requires: libyazpp3 + +%description -n libyazproxy2 +YAZ Proxy libraries + +%package -n libyazproxy2-devel +Summary: YAZ Proxy development libraries +Group: Development/Libraries +Requires: libyazproxy2 = %{version} libyazpp3-devel + +%description -n libyazproxy2-devel +Development libraries and include files for the YAZ proxy. + +%prep +%setup + +%build + +CFLAGS="$RPM_OPT_FLAGS" \ + ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ + --enable-shared --with-yazpp=/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 + +%clean +rm -fr ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +%doc README LICENSE +%{_bindir}/yazproxy +%{_mandir}/man8/yazproxy.* +%{_datadir}/yazproxy +%{_datadir}/doc/yazproxy + +%files -n libyazproxy2 +%defattr(-,root,root) +%{_libdir}/*.so.* +%{_libdir}/yazproxy + +%files -n libyazproxy2-devel +%defattr(-,root,root) +%{_includedir}/yazproxy +%{_libdir}/*.so +%{_libdir}/*.a +%{_libdir}/*.la + -- 1.7.10.4