From 67f914be470375a452aa07de5d807c400d383fb4 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 13 Jan 2009 11:53:52 +0100 Subject: [PATCH] Added RPM spec --- Makefile.am | 19 +++-------------- configure.ac | 1 + yazpp.spec.in | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 16 deletions(-) create mode 100644 yazpp.spec.in diff --git a/Makefile.am b/Makefile.am index 70d1579..ed9e6db 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,9 @@ ACLOCAL_AMFLAGS = -I m4 aclocaldir=$(datadir)/aclocal aclocal_DATA = m4/yazpp.m4 -EXTRA_DIST= LICENSE TODO yazpp-config.in m4/yaz.m4 m4/yazpp.m4 buildconf.sh +SPEC_FILE=$(PACKAGE).spec +EXTRA_DIST= $(SPEC_FILE) README LICENSE NEWS \ + yazpp-config.in m4/yaz.m4 m4/yazpp.m4 buildconf.sh Doxyfile.in dist-hook: if test -x /usr/bin/git -a -d .git; then git log >ChangeLog ; cp ChangeLog $(distdir); fi @@ -20,18 +22,3 @@ dist-hook: dox: doxygen -.PHONY:firefox -firefox: - firefox -new-window file://`pwd`/dox/html/index.html & - -.PHONY:konqueror -konqueror: - konqueror file://`pwd`/dox/html/index.html & - -.PHONY:galeon -galeon: - galeon file://`pwd`/dox/html/index.html & - -.PHONY:epiphany -epiphany: - epiphany --new-window file://`pwd`/dox/html/index.html & diff --git a/configure.ac b/configure.ac index b824b19..0ee2b8a 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,7 @@ AC_OUTPUT([ doc/local.ent doc/common/Makefile doc/common/print.dsl + yazpp.spec ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config]) diff --git a/yazpp.spec.in b/yazpp.spec.in new file mode 100644 index 0000000..1aad003 --- /dev/null +++ b/yazpp.spec.in @@ -0,0 +1,66 @@ +Summary: YAZ++ package (main) +Name: yazpp +Version: @VERSION@ +Release: 1 +License: BSD +Group: Applications/Internet +Vendor: Index Data ApS +Source: yazpp-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: pkgconfig libyaz3-devel +Packager: Adam Dickmeiss +URL: http://www.indexdata.dk/yazplusplus/ + +%description +YAZ++ package. + +%package -n libyazpp3 +Summary: YAZ++ and ZOOM library +Group: Libraries +Requires: libyaz3 + +%description -n libyazpp3 +Libraries for the YAZ++ package. + +%package -n libyazpp3-devel +Summary: Z39.50 Library - development package +Group: Development/Libraries +Requires: libyazpp3-devel = %{version} libyaz3-devel + +%description -n libyazpp3-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 + +%clean +rm -fr ${RPM_BUILD_ROOT} + +%files -n libyazpp3 +%doc README LICENSE NEWS +%defattr(-,root,root) +%{_libdir}/*.so.* + +%files -n libyazpp3-devel +%defattr(-,root,root) +%{_bindir}/yazpp-config +%{_includedir}/yazpp +%{_libdir}/*.so +%{_libdir}/*.a +%{_libdir}/*.la +%{_datadir}/aclocal/yazpp.m4 +%{_mandir}/man8/yazpp-config.* +%{_datadir}/doc/yazpp + -- 1.7.10.4