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

Revision 8167, 3.1 KB checked in by kudoh, 10 years ago (diff)

new upstream release and rebuild

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