]> git.pld-linux.org Git - packages/gdome2.git/commitdiff
- added destdir patch, package gtk-doc apidocs in gtk-doc specific dir, package in... auto/th/gdome2-0.8.1-11
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 18 Jan 2014 08:09:36 +0000 (09:09 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 18 Jan 2014 08:09:36 +0000 (09:09 +0100)
- verbose lib files

gdome2-destdir.patch [new file with mode: 0644]
gdome2.spec

diff --git a/gdome2-destdir.patch b/gdome2-destdir.patch
new file mode 100644 (file)
index 0000000..d1dc49c
--- /dev/null
@@ -0,0 +1,15 @@
+--- gdome2-0.8.1/gtk-doc/Makefile.am.orig      2002-04-04 08:58:04.000000000 +0200
++++ gdome2-0.8.1/gtk-doc/Makefile.am   2014-01-18 08:52:44.335300888 +0100
+@@ -33,9 +33,9 @@
+       rm -rf sgml html gdome2-decl-list.txt gdome2-decl.txt 
+ install-data-local:
+-      -install -d -m 0755 $(TARGET_DIR)
+-      -install -m 0644 $(srcdir)/html/*.html $(TARGET_DIR)
+-      -install -m 0644 $(srcdir)/html/index.sgml $(TARGET_DIR)
++      -install -d -m 0755 $(DESTDIR)$(TARGET_DIR)
++      -install -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR)
++      -install -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR)
+       -(cd $(DESTDIR); gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR))
+ .PHONY : html sgml templates scan
index 22136be933ff83cec5193704b71e0d895af68349..80458c442f857d7f336f8a7b35a4eda97b19cdf3 100644 (file)
@@ -14,14 +14,16 @@ Source0:    http://gdome2.cs.unibo.it/tarball/%{name}-%{version}.tar.gz
 Patch0:                %{name}-glib2.patch
 Patch1:                %{name}-build_fix.patch
 Patch2:                format-security.patch
+Patch3:                %{name}-destdir.patch
 URL:           http://gdome2.cs.unibo.it/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: glib2-devel >= 2.2.0
 BuildRequires: libtool
-BuildRequires: libxml2-devel >= 2.4.26
+BuildRequires: libxml2-devel >= 1:2.4.26
 BuildRequires: pkgconfig
-Requires:      libxml2 >= 2.4.26
+Requires:      glib2 >= 2.2.0
+Requires:      libxml2 >= 1:2.4.26
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -65,7 +67,7 @@ Summary(pl.UTF-8):    Pliki nagłówkowe gdome2
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 Requires:      glib2-devel >= 2.2.0
-Requires:      libxml2-devel >= 2.4.26
+Requires:      libxml2-devel >= 1:2.4.26
 
 %description devel
 This package contains the header files and configuration scripts for
@@ -121,21 +123,36 @@ This package contains static libraries for developing with gdome2.
 Pakiet ten zawiera statyczne biblioteki potrzebne do rozwijania
 oprogramowania opartego o gdome2.
 
+%package apidocs
+Summary:       API documentation for gdome2 library
+Summary(pl.UTF-8):     Dokumentacja API biblioteki gdome2
+Group:         Documentation
+
+%description apidocs
+API documentation for gdome2 library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki gdome2.
+
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
+# disable glib 1.x in order to force 2.x
 echo 'AM_DEFUN([AM_PATH_GLIB], [$3])' >> acinclude.m4
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
-       %{!?with_static_libs:--disable-static}
+       %{!?with_static_libs:--disable-static} \
+       --with-html-dir=%{_gtkdocdir}
 
 %{__make}
 
@@ -154,23 +171,26 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS MAINTAINERS ChangeLog README
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/lib*.so.0
+%attr(755,root,root) %{_libdir}/libgdome.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgdome.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%doc gtk-doc/html/*.html
 %attr(755,root,root) %{_bindir}/gdome-config
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%attr(755,root,root) %{_libdir}/*.sh
+%attr(755,root,root) %{_libdir}/libgdome.so
+%{_libdir}/libgdome.la
+%attr(755,root,root) %{_libdir}/gdomeConf.sh
 %{_includedir}/libgdome
 %{_mandir}/man1/gdome-config.1*
-%{_aclocaldir}/%{name}.m4
-%{_pkgconfigdir}/%{name}.pc
+%{_aclocaldir}/gdome2.m4
+%{_pkgconfigdir}/gdome2.pc
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/*.a
+%{_libdir}/libgdome.a
 %endif
+
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/gdome2-%{version}
This page took 0.104066 seconds and 4 git commands to generate.