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