Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.5:Update
gcolor2
gcolor2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gcolor2.spec of Package gcolor2
# # spec file for package gcolor2 # # Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define iconsdir %{_datadir}/icons/hicolor Name: gcolor2 Version: 0.4 Release: 0 Summary: Simple color selector License: GPL-2.0-or-later Group: Productivity/Graphics/Other URL: http://gcolor2.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/gcolor2/%{name}-%{version}.tar.bz2 Source1: gcolor2-pofiles.tar.bz2 Source2: gcolor2.desktop # add missing headers, function declarations and translation symbols to fix warnings Patch0: gcolor2-0.4-warnings.patch BuildRequires: ImageMagick BuildRequires: gtk2-devel BuildRequires: intltool BuildRequires: libtool BuildRequires: update-desktop-files BuildRequires: perl(XML::Parser) %description Gcolor2 is a GTK2 color selector to provide a quick and easy way to find colors for whatever task is at hand. Colors can be saved and deleted as well. %prep %setup -q -a1 %patch0 -p1 %build echo "gcolor2.glade" >> po/POTFILES.in autoreconf -fiv intltoolize --force export CFLAGS="%{optflags} -fcommon" %configure #languages not detected pushd po sed -i s/"ALL_LINGUAS ="/"ALL_LINGUAS = `ls *.po | cut -d. -f1 | xargs`"/"" Makefile popd %make_build %install %make_install # Menu mkdir -p %{buildroot}%{_datadir}/applications install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop #icons for size in 16 32 48; do SIZE="${size}x${size}" mkdir -p %{buildroot}%{iconsdir}/$SIZE/apps convert -strip -scale $SIZE pixmaps/icon.png %{buildroot}%{iconsdir}/$SIZE/apps/%{name}.png done %find_lang %{name} %files -f %{name}.lang %license COPYING %doc AUTHORS ChangeLog %{_bindir}/gcolor2 %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name} %{iconsdir}/*/apps/%{name}.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor