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

Revision 12175, 3.3 KB checked in by ara_t, 5 years ago (diff)

clipit: update to 1.4.4

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