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
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 &
--- /dev/null
+Summary: YAZ++ package (main)
+Name: yazpp
+Version: @VERSION@
+Release: 1
+License: BSD
+Group: Applications/Internet
+Vendor: Index Data ApS <info@indexdata.dk>
+Source: yazpp-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: pkgconfig libyaz3-devel
+Packager: Adam Dickmeiss <adam@indexdata.dk>
+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
+