]> git.pld-linux.org Git - packages/devhelp.git/blob - devhelp.spec
Update to 3.8.0 (new soname)
[packages/devhelp.git] / devhelp.spec
1 Summary:        API documentation browser for GNOME
2 Summary(pl.UTF-8):      Przeglądarka dokumentacji API dla GNOME
3 Name:           devhelp
4 Version:        3.8.0
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.8/%{name}-%{version}.tar.xz
9 # Source0-md5:  e6d8bef5cf698c5d25a0e1c8593a2f63
10 Patch0:         %{name}-bookdir.patch
11 URL:            http://www.imendio.com/projects/devhelp/
12 BuildRequires:  autoconf >= 2.64
13 BuildRequires:  automake >= 1:1.11
14 BuildRequires:  gettext-devel >= 0.17
15 BuildRequires:  glib2-devel >= 1:2.32.0
16 BuildRequires:  gnome-common >= 2.24.0
17 BuildRequires:  gtk+3-devel >= 3.6.0
18 BuildRequires:  gtk-webkit3-devel >= 1.10.0
19 BuildRequires:  intltool >= 0.40.0
20 BuildRequires:  libtool >= 2:2.2
21 BuildRequires:  pkgconfig
22 BuildRequires:  python >= 2.3
23 BuildRequires:  rpm-pythonprov
24 BuildRequires:  rpmbuild(macros) >= 1.311
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  xz
27 BuildRequires:  zlib-devel
28 Requires(post,postun):  glib2 >= 1:2.32.0
29 Requires(post,postun):  gtk-update-icon-cache
30 Requires:       %{name}-libs = %{version}-%{release}
31 Requires:       gtk-webkit3 >= 1.10.0
32 Requires:       hicolor-icon-theme
33 # sr@Latn vs. sr@latin
34 Conflicts:      glibc-misc < 6:2.7
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 API documentation browser for GNOME.
39
40 %description -l pl.UTF-8
41 Przeglądarka dokumentacji API dla GNOME.
42
43 %package libs
44 Summary:        Library to embed Devhelp in other applications
45 Summary(pl.UTF-8):      Biblioteka do osadzania Devhelp w innych aplikacjach
46 Group:          X11/Libraries
47
48 %description libs
49 Library of Devhelp for embedding into other applications.
50
51 %description libs -l pl.UTF-8
52 Biblioteka Devhelp do osadzania w innych aplikacjach.
53
54 %package devel
55 Summary:        Headers for Devhelp library
56 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Devhelp
57 Group:          X11/Development/Libraries
58 Requires:       %{name}-libs = %{version}-%{release}
59 Requires:       glib2-devel >= 1:2.32.0
60 Requires:       gtk+3-devel >= 3.6.0
61
62 %description devel
63 Headers for Devhelp library.
64
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki Devhelp.
67
68 %package static
69 Summary:        Static Devhelp library
70 Summary(pl.UTF-8):      Statyczna biblioteka Devhelp
71 Group:          X11/Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 Static version of Devhelp library.
76
77 %description static -l pl.UTF-8
78 Statyczna biblioteka Devhelp.
79
80 %package -n gedit-plugin-devhelp
81 Summary:        Devhelp plugin for Gedit editor
82 Summary(pl.UTF-8):      Wtyczka devhelpa dla edytora Gedit
83 Group:          X11/Applications
84 Requires:       %{name} = %{version}-%{release}
85 Requires:       gedit
86 Requires:       libpeas-loader-python3
87 Requires:       python-pygobject3
88 Obsoletes:      gedit2-plugin-devhelp
89
90 %description -n gedit-plugin-devhelp
91 Plugin that allows to browse API documentation in Gedit.
92
93 %description -n gedit-plugin-devhelp -l pl.UTF-8
94 Wtyczka umożliwiająca przeglądanie dokumentacji API w edytorze Gedit.
95
96 %prep
97 %setup -q
98 %patch0 -p1
99
100 %build
101 %{__intltoolize}
102 %{__libtoolize}
103 %{__aclocal} -I m4 -I libgd
104 %{__autoconf}
105 %{__autoheader}
106 %{__automake}
107 %configure \
108         --enable-static \
109         --disable-silent-rules
110 %{__make}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,references,specs}
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT
118
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/*.py \
120         $RPM_BUILD_ROOT%{_libdir}/*.la
121
122 %find_lang %{name}
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %post
128 %glib_compile_schemas
129 %update_icon_cache hicolor
130
131 %postun
132 %glib_compile_schemas
133 %update_icon_cache hicolor
134
135 %post   libs -p /sbin/ldconfig
136 %postun libs -p /sbin/ldconfig
137
138 %files -f %{name}.lang
139 %defattr(644,root,root,755)
140 %doc AUTHORS NEWS README TODO
141 %attr(755,root,root) %{_bindir}/devhelp
142 %{_datadir}/%{name}
143 %{_desktopdir}/devhelp.desktop
144 %{_iconsdir}/hicolor/*/apps/*.png
145 %{_datadir}/GConf/gsettings/devhelp.convert
146 %{_datadir}/glib-2.0/schemas/org.gnome.devhelp.gschema.xml
147
148 %files libs
149 %defattr(644,root,root,755)
150 %attr(755,root,root) %{_libdir}/libdevhelp-3.so.*.*.*
151 %attr(755,root,root) %ghost %{_libdir}/libdevhelp-3.so.2
152
153 %files devel
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_libdir}/libdevhelp-3.so
156 %{_pkgconfigdir}/libdevhelp-3.0.pc
157 %{_includedir}/devhelp-3.0
158
159 %files static
160 %defattr(644,root,root,755)
161 %{_libdir}/libdevhelp-3.a
162
163 %files -n gedit-plugin-devhelp
164 %defattr(644,root,root,755)
165 %{_libdir}/gedit/plugins/devhelp.plugin
166 %{_libdir}/gedit/plugins/devhelp.py[co]
This page took 0.07438 seconds and 3 git commands to generate.