Browse Source

clipit: update to 1.4.4

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12175 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 4 years ago
parent
commit
fcd1004635
1 changed files with 19 additions and 10 deletions
  1. 19 10
      c/clipit/clipit-vl.spec

+ 19 - 10
c/clipit/clipit-vl.spec

@@ -1,13 +1,16 @@
 Name:           clipit
-Version:        1.4.2
-Release:        2%{?_dist_release}
+Version:        1.4.4
+Release:        1%{?_dist_release}
 Summary:        lightweight GTK+ clipboard manager
 Summary(ja):    軽量な GTK+ クリップボードマネージャ
 
 Group:          Applications/Accessories
 License:        GPLv3
 URL:            http://gtk%{name}.sourceforge.net/
-Source0:        %{name}-%{version}.tar.gz
+
+# https://github.com/CristianHenzel/ClipIt/releases
+Source0:        ClipIt-%{version}.tar.gz
+
 #Source1:        %{name}_ja.po
 Patch0:         delete_unity.patch
 
@@ -31,17 +34,18 @@ Parcellite (http://parcellite.sourceforge.net) からフォークし、
 プロジェクトに追加機能とバグフィックスを加えています。
 
 %prep
-%setup -q
+%setup -q -n ClipIt-%{version}
 #cp -f %{SOURCE1} po/ja.po
 %patch0 -p1
 
 %build
+./autogen.sh
 %configure --enable-appindicator=no
-make %{?_smp_mflags}
+%{__make} %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
+%{__rm} -rf $RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
 %find_lang %{name}
 
 desktop-file-install --vendor=""                     \
@@ -55,7 +59,7 @@ desktop-file-install --vendor=""                           \
   ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf $RPM_BUILD_ROOT
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -63,13 +67,14 @@ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %postun
 if [ $1 -eq 0 ] ; then
-	touch --no-create %{_datadir}/icons/hicolor &>/dev/null
-	gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 fi
 
 %posttrans
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
+
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING README NEWS
@@ -79,7 +84,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_datadir}/icons/hicolor/
 %{_mandir}/man1/%{name}.1.gz
 
+
 %changelog
+* Sat Sep 07 2019 Toshiaki Ara <ara_t@384.jp> - 1.4.4-1
+- update to 1.4.4
+
 * Mon Jan 13 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.4.2-2
 - rebuilt with current toolchain