Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Luya Tshimbalanga | e8721ac474 |
|
@ -1,2 +1,5 @@
|
|||
/gpick_0.2.4.tar.gz
|
||||
/gpick_0.2.5.tar.gz
|
||||
/gpick-2c8266a7770485484bcaf8173fe3c4473fdc89b7.tar.gz
|
||||
/gpick-0.2.5-2c8266a.tar.gz
|
||||
/gpick-0.2.5-569ee0f.tar.gz
|
||||
|
|
75
gpick.spec
75
gpick.spec
|
@ -1,27 +1,35 @@
|
|||
%global commit 569ee0f165b689825efd0cb7da1695beb7f8aa9b
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
%global checkout .20160613git%{shortcommit}
|
||||
|
||||
Name: gpick
|
||||
Version: 0.2.5
|
||||
Release: 15%{?dist}
|
||||
Release: 16%{?checkout}%{?dist}
|
||||
Summary: Advanced color picker
|
||||
|
||||
License: BSD
|
||||
URL: http://code.google.com/p/gpick/
|
||||
Source0: http://gpick.googlecode.com/files/%{name}_%{version}.tar.gz
|
||||
|
||||
URL: http://gpick.org
|
||||
# To get tarball from github
|
||||
# wget https://github.com/thezbyg/gpick/archive/569ee0f165b689825efd0cb7da1695beb7f8aa9b/gpick-0.2.5-569ee0f.tar.gz
|
||||
Source0: https://github.com/thezbyg/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
||||
BuildRequires: scons
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: pkgconfig(lua)
|
||||
BuildRequires: pkgconfig(dbus-glib-1)
|
||||
BuildRequires: pkgconfig(gtk+-2.0)
|
||||
BuildRequires: flex
|
||||
BuildRequires: ragel
|
||||
BuildRequires: expat-devel
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
|
||||
BuildRequires: libappstream-glib
|
||||
%description
|
||||
Advanced color picker
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}_%{version}
|
||||
#%%setup -q -n %%{name}_%%{version}
|
||||
%setup -q -n %{name}-%{commit}
|
||||
mkdir .git
|
||||
|
||||
# Delete external libraries and only use system dependencies to build GPick
|
||||
rm -rf extern
|
||||
|
@ -38,51 +46,11 @@ export CXXFLAGS="%{optflags}"
|
|||
export LDFLAGS="%{optflags}"
|
||||
|
||||
scons install DESTDIR=%{buildroot}/%{_prefix}
|
||||
cp -v share/appdata/%{name}.appdata.xml %{buildroot}/%{_datadir}/appdata/
|
||||
|
||||
%check
|
||||
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
||||
|
||||
# Register as an application to be visible in the software center
|
||||
#
|
||||
# NOTE: It would be *awesome* if this file was maintained by the upstream
|
||||
# project, translated and installed into the right place during `make install`.
|
||||
#
|
||||
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
|
||||
#
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
|
||||
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com> -->
|
||||
<!--
|
||||
BugReportURL: https://code.google.com/p/gpick/issues/detail?id=117
|
||||
SentUpstream: 2014-06-14
|
||||
-->
|
||||
<application>
|
||||
<id type="desktop">gpick.desktop</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<summary>Advanced color picker and color palette creator</summary>
|
||||
<description>
|
||||
<p>
|
||||
Gpick is an application that allows you to sample any color from anywhere
|
||||
on the desktop, and use it to create palettes (i.e. collections of colors)
|
||||
for use in graphic design applications.
|
||||
Gpick also has other features that help in the creation of color palettes,
|
||||
such as: the ability to create a palette from an imported image, automatic
|
||||
naming of colors, and a scheme generator.
|
||||
Color palettes generated in Gpick can be exported many different formats,
|
||||
including: Inkscape/Gimp Palettes (*.gpl), Adobe Swatch Exchange (*.ase),
|
||||
and Alias/WaveFront Material (*.mtl).
|
||||
</p>
|
||||
</description>
|
||||
<url type="homepage">https://code.google.com/p/gpick/</url>
|
||||
<url type="bugtracker">https://code.google.com/p/gpick/issues/list</url>
|
||||
<screenshots>
|
||||
<screenshot type="default">http://wiki.gpick.googlecode.com/hg/images/main-page-gpick-screenshot.png</screenshot>
|
||||
</screenshots>
|
||||
<!-- FIXME: change this to an upstream email address for spec updates
|
||||
<updatecontact>someone_who_cares@upstream_project.org</updatecontact>
|
||||
-->
|
||||
</application>
|
||||
EOF
|
||||
|
||||
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
||||
%find_lang %{name}
|
||||
|
||||
%files -f %{name}.lang
|
||||
|
@ -110,6 +78,11 @@ fi
|
|||
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
%changelog
|
||||
* Mon Jun 13 2016 Luya Tshimbalanga <luya@fedoraproject.org> - 0.2.5-16.20160613git569ee0f
|
||||
- Latest upstream git snapshot
|
||||
- Dropped downstream appdata
|
||||
- Added ragel,libcurl and libappstream-lib as dependency
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue