Added RPM spec
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 13 Jan 2009 10:53:52 +0000 (11:53 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 13 Jan 2009 10:53:52 +0000 (11:53 +0100)
Makefile.am
configure.ac
yazpp.spec.in [new file with mode: 0644]

index 70d1579..ed9e6db 100644 (file)
@@ -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 &
index b824b19..0ee2b8a 100644 (file)
@@ -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 (file)
index 0000000..1aad003
--- /dev/null
@@ -0,0 +1,66 @@
+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
+