]> git.pld-linux.org Git - packages/devhelp.git/blob - devhelp.spec
- x32 rebuild
[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.12.1
5 Release:        2
6 License:        GPL v2+
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.12/%{name}-%{version}.tar.xz
9 # Source0-md5:  893629a721d63ceacf4fd7b6233b30cb
10 Patch0:         %{name}-bookdir.patch
11 Patch1:         %{name}-use-python3.patch
12 URL:            http://www.imendio.com/projects/devhelp/
13 BuildRequires:  autoconf >= 2.64
14 BuildRequires:  automake >= 1:1.11
15 BuildRequires:  gettext-tools >= 0.17
16 BuildRequires:  glib2-devel >= 1:2.38.0
17 BuildRequires:  gnome-common >= 2.24.0
18 BuildRequires:  gtk+3-devel >= 3.10.0
19 BuildRequires:  gtk-webkit3-devel >= 2.0.0
20 BuildRequires:  intltool >= 0.40.0
21 BuildRequires:  libtool >= 2:2.2
22 BuildRequires:  pkgconfig
23 BuildRequires:  python3 >= 1:3.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,postun):  glib2 >= 1:2.32.0
30 Requires(post,postun):  gtk-update-icon-cache
31 Requires:       %{name}-libs = %{version}-%{release}
32 Requires:       gtk-webkit3 >= 2.0.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.38.0
61 Requires:       gtk+3-devel >= 3.10.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-python3
88 Requires:       python3-pygobject3
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 %patch1 -p1
101
102 %build
103 %{__intltoolize}
104 %{__libtoolize}
105 %{__aclocal} -I m4
106 %{__autoconf}
107 %{__autoheader}
108 %{__automake}
109 %configure \
110         --enable-static \
111         --disable-silent-rules
112 %{__make}
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,references,specs}
117
118 %{__make} install \
119         DESTDIR=$RPM_BUILD_ROOT
120
121 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
122
123 %find_lang %{name}
124
125 %clean
126 rm -rf $RPM_BUILD_ROOT
127
128 %post
129 %glib_compile_schemas
130 %update_icon_cache hicolor
131
132 %postun
133 %glib_compile_schemas
134 %update_icon_cache hicolor
135
136 %post   libs -p /sbin/ldconfig
137 %postun libs -p /sbin/ldconfig
138
139 %files -f %{name}.lang
140 %defattr(644,root,root,755)
141 %doc AUTHORS NEWS README TODO
142 %attr(755,root,root) %{_bindir}/devhelp
143 %{_datadir}/%{name}
144 %{_desktopdir}/devhelp.desktop
145 %{_iconsdir}/hicolor/*/apps/*.png
146 %{_datadir}/GConf/gsettings/devhelp.convert
147 %{_datadir}/glib-2.0/schemas/org.gnome.devhelp.gschema.xml
148 %{_datadir}/appdata/devhelp.appdata.xml
149
150 %files libs
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/libdevhelp-3.so.*.*.*
153 %attr(755,root,root) %ghost %{_libdir}/libdevhelp-3.so.2
154
155 %files devel
156 %defattr(644,root,root,755)
157 %attr(755,root,root) %{_libdir}/libdevhelp-3.so
158 %{_pkgconfigdir}/libdevhelp-3.0.pc
159 %{_includedir}/devhelp-3.0
160
161 %files static
162 %defattr(644,root,root,755)
163 %{_libdir}/libdevhelp-3.a
164
165 %files -n gedit-plugin-devhelp
166 %defattr(644,root,root,755)
167 %{_libdir}/gedit/plugins/__pycache__
168 %{_libdir}/gedit/plugins/devhelp.plugin
169 %{_libdir}/gedit/plugins/devhelp.py
This page took 0.057666 seconds and 3 git commands to generate.