source: projects/specs/trunk/c/clipit/clipit-vl.spec @ 4077

Revision 4077, 2.8 KB checked in by kudoh, 13 years ago (diff)
Line 
1Name:           clipit
2Version:        1.4.1
3Release:        1%{?_dist_release}
4Summary:        lightweight GTK+ clipboard manager
5Summary(ja):    軽量な GTK+ クリップボードマネージャ
6
7Group:          Applications/Accessories
8License:        GPLv3
9URL:            http://gtk%{name}.sourceforge.net/
10Source0:        %{name}-%{version}.tar.gz
11Source1:        %{name}_ja.po
12
13BuildRoot:      %{_tmppath}/%{name}-%{version}-root
14
15BuildRequires:  gtk2-devel >= 2.10.0, glib2-devel >= 2.14.0
16BuildRequires:  desktop-file-utils, intltool >= 0.23
17BuildRequires:  gettext
18BuildRequires:  perl-XML-Parser
19
20%description
21ClipIt is a lightweight, fully featured GTK+ clipboard manager.
22It was forked from Parcellite (http://parcellite.sourceforge.net),
23adding additional features and bugfixes to the project.
24
25%description -l ja
26ClipIt は軽量で十分な機能を備えた GTK+ のクリップボードマネージャです。
27Parcellite (http://parcellite.sourceforge.net) からフォークし、
28プロジェクトに追加機能とバグフィックスを加えています。
29
30%prep
31%setup -q
32cp -f %{SOURCE1} po/ja.po
33
34%build
35%configure --enable-appindicator=no
36make %{?_smp_mflags}
37
38%install
39rm -rf $RPM_BUILD_ROOT
40make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
41%find_lang %{name}
42
43desktop-file-install --vendor=""                     \
44  --delete-original                                        \
45  --remove-category=Application                            \
46  --dir=${RPM_BUILD_ROOT}%{_datadir}/applications          \
47  ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
48
49desktop-file-install --vendor=""                           \
50  --dir=${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/     \
51  ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%post
57touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
58
59
60%postun
61if [ $1 -eq 0 ] ; then
62        touch --no-create %{_datadir}/icons/hicolor &>/dev/null
63        gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
64fi
65
66%posttrans
67gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
68
69%files -f %{name}.lang
70%defattr(-,root,root,-)
71%doc AUTHORS ChangeLog COPYING README NEWS
72%config(noreplace) %{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
73%{_bindir}/%{name}
74%{_datadir}/applications/%{name}.desktop
75%{_datadir}/icons/hicolor/
76%{_mandir}/man1/%{name}.1.gz
77
78%changelog
79* Tue Jun 07 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.4.1-1
80- new upstream release
81- updated source1
82- added configure option --enable-appindicator=no
83- run gtk-update-icon-cache
84
85* Fri Jan 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.11-2
86- added source1 to translate modified Japanese
87
88* Wed Jan 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.11-1
89- initial build for VineSeed
Note: See TracBrowser for help on using the repository browser.