]>
Commit | Line | Data |
---|---|---|
ced44c09 | 1 | Summary: GNOME 2D chemical structure drawing tool |
54a6d32a | 2 | Summary(pl.UTF-8): Program GNOME do rysowania dwuwymiarowych wzorów chemicznych |
ced44c09 | 3 | Name: gchempaint |
a89782e5 | 4 | Version: 0.6.9 |
ced44c09 | 5 | Release: 1 |
ced44c09 | 6 | License: GPL |
7 | Group: X11/Applications/Science | |
a89782e5 | 8 | Source0: http://savannah.nongnu.org/download/gchempaint/0.6/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 3b81f99972bedccd5f19a6bda785d451 | |
e63ed57d | 10 | URL: http://www.nongnu.org/gchempaint/ |
86020a18 | 11 | BuildRequires: autoconf >= 2.50 |
ced44c09 | 12 | BuildRequires: automake |
0b385a98 | 13 | BuildRequires: gnome-chemistry-utils-devel >= 0.4.7 |
86020a18 JB |
14 | BuildRequires: gnome-doc-utils |
15 | BuildRequires: gnome-vfs2-devel >= 2.6.0 | |
16 | BuildRequires: gtk+2-devel >= 2:2.6.0 | |
17 | BuildRequires: libbonoboui-devel >= 2.6.0 | |
18 | BuildRequires: libglade2-devel >= 2.4.0 | |
19 | BuildRequires: libgnomeprintui-devel >= 2.6.0 | |
20 | BuildRequires: libgnomeui-devel >= 2.6.0 | |
80552d66 | 21 | BuildRequires: libtool |
00a15a05 | 22 | BuildRequires: rpmbuild(macros) >= 1.198 |
86020a18 JB |
23 | BuildRequires: shared-mime-info >= 0.12 |
24 | BuildRequires: which | |
00a15a05 JB |
25 | Requires(post,postun): scrollkeeper |
26 | Requires(post,postun): /sbin/ldconfig | |
0b385a98 | 27 | Requires: gnome-chemistry-utils >= 0.4.7 |
ced44c09 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
38565251 JB |
30 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
31 | ||
ced44c09 | 32 | %description |
e8395cdb | 33 | GChemPaint is a 2D chemical structures editor for the GNOME-2 desktop. |
ced44c09 | 34 | GChemPaint is a multi-document application and will be a bonobo server |
e8395cdb | 35 | so that some chemistry could be embedded in GNOME applications such as |
ced44c09 | 36 | Gnumeric and Abiword. |
37 | ||
78c647d1 JR |
38 | %description -l pl.UTF-8 |
39 | GChemPaint jest edytorem dwuwymiarowych wzorów chemicznych dla | |
40 | środowiska GNOME-2. GChemPaint pozwala na edycję wielu dokumentów | |
41 | jednocześnie i będzie serwerem bonobo, co pozwoli na używanie wzorów | |
e8395cdb | 42 | chemicznych w innych aplikacjach GNOME, takich jak Gnumeric czy |
ced44c09 | 43 | Abiword. |
44 | ||
0b385a98 | 45 | %package devel |
46 | Summary: Header files for gchempaint | |
54a6d32a | 47 | Summary(pl.UTF-8): Pliki nagłówkowe dla programu gchempaint |
88a19c32 | 48 | Group: X11/Development/Libraries |
0b385a98 | 49 | Requires: %{name} = %{version}-%{release} |
86020a18 JB |
50 | Requires: gnome-chemistry-utils-devel >= 0.4.7 |
51 | Requires: gnome-vfs2-devel >= 2.6.0 | |
52 | Requires: gtk+2-devel >= 2:2.6.0 | |
53 | Requires: libbonoboui-devel >= 2.6.0 | |
54 | Requires: libglade2-devel >= 2.4.0 | |
55 | Requires: libgnomeprintui-devel >= 2.6.0 | |
56 | Requires: libgnomeui-devel >= 2.6.0 | |
0b385a98 | 57 | |
58 | %description devel | |
59 | The gchempaint-devel package contains the header files necessary for | |
60 | developing programs using gchempaint, and especially for writing new | |
61 | plugins. | |
62 | ||
78c647d1 JR |
63 | %description devel -l pl.UTF-8 |
64 | Pakiet gchempaint-devel zawiera pliki nagłówkowe niezbędne do | |
65 | tworzenia oprogramowania wykorzystującego gchempaint, a zwłaszcza do | |
0b385a98 | 66 | tworzenia wtyczek do niego. |
67 | ||
68 | %package static | |
69 | Summary: Static gchempaint libraries | |
54a6d32a | 70 | Summary(pl.UTF-8): Statyczne biblioteki programu gchempaint |
88a19c32 JB |
71 | Group: X11/Development/Libraries |
72 | Requires: %{name}-devel = %{version}-%{release} | |
0b385a98 | 73 | |
74 | %description static | |
75 | Static gchempaint libraries. | |
76 | ||
78c647d1 | 77 | %description static -l pl.UTF-8 |
88a19c32 | 78 | Statyczne biblioteki programu gchempaint. |
0b385a98 | 79 | |
ced44c09 | 80 | %prep |
81 | %setup -q | |
82 | ||
83 | %build | |
80552d66 | 84 | %{__libtoolize} |
ced44c09 | 85 | %{__aclocal} |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
86020a18 | 88 | %{__automake} |
0b385a98 | 89 | %configure \ |
86020a18 JB |
90 | --disable-update-databases \ |
91 | --enable-static | |
ced44c09 | 92 | %{__make} |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
80552d66 | 96 | |
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
ced44c09 | 99 | |
86020a18 JB |
100 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{la,a} |
101 | ||
38565251 | 102 | %find_lang %{name} --with-gnome |
ced44c09 | 103 | |
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
fecc698d | 107 | %post |
108 | %scrollkeeper_update_post | |
0b385a98 | 109 | /sbin/ldconfig |
110 | umask 022 | |
111 | update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||: | |
112 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||: | |
fecc698d | 113 | |
114 | %postun | |
00a15a05 | 115 | %scrollkeeper_update_postun |
0b385a98 | 116 | /sbin/ldconfig |
86020a18 JB |
117 | if [ "$1" = "0" ]; then |
118 | umask 022 | |
119 | update-mime-database %{_datadir}/mime >/dev/null 2>&1 | |
120 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 | |
0b385a98 | 121 | fi |
ced44c09 | 122 | |
123 | %files -f %{name}.lang | |
124 | %defattr(644,root,root,755) | |
80552d66 | 125 | %doc AUTHORS ChangeLog NEWS README TODO |
ced44c09 | 126 | %attr(755,root,root) %{_bindir}/%{name} |
0b385a98 | 127 | %attr(755,root,root) %{_bindir}/%{name}-viewer |
88a19c32 | 128 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
86020a18 JB |
129 | %dir %{_libdir}/%{name} |
130 | %dir %{_libdir}/%{name}/plugins | |
131 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so | |
88a19c32 | 132 | %{_libdir}/bonobo/servers/%{name}.server |
0b385a98 | 133 | %{_sysconfdir}/gconf/schemas/* |
38565251 | 134 | %{_datadir}/%{name} |
0b385a98 | 135 | %{_datadir}/mime/packages/* |
38565251 | 136 | %{_desktopdir}/%{name}.desktop |
0b385a98 | 137 | %{_iconsdir}/hicolor/128x128/apps/* |
138 | %{_iconsdir}/hicolor/128x128/mimetypes/* | |
139 | %{_iconsdir}/hicolor/32x32/apps/* | |
140 | %{_iconsdir}/hicolor/32x32/mimetypes/* | |
141 | %{_iconsdir}/hicolor/48x48/apps/* | |
142 | %{_iconsdir}/hicolor/48x48/mimetypes/* | |
143 | %{_iconsdir}/hicolor/72x72/apps/* | |
144 | %{_iconsdir}/hicolor/72x72/mimetypes/* | |
00a15a05 | 145 | %{_omf_dest_dir}/gchempaint |
0b385a98 | 146 | |
147 | %files devel | |
148 | %defattr(644,root,root,755) | |
88a19c32 JB |
149 | %attr(755,root,root) %{_libdir}/lib*.so |
150 | %{_libdir}/lib*.la | |
0b385a98 | 151 | %{_includedir}/%{name} |
0b385a98 | 152 | |
86020a18 JB |
153 | %files static |
154 | %defattr(644,root,root,755) | |
155 | %{_libdir}/lib*.a |