[packages/fontik] new, version 0.6.1 from vcs

glen glen at pld-linux.org
Thu Jun 26 07:10:49 CEST 2014


commit 970f7251d378edbef2349ffa6fc5b7a47e89b14c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jun 26 08:08:19 2014 +0300

    new, version 0.6.1 from vcs
    
    based on fedora package 186b07abd230efc2b033f79a2422e729993bc279

 fontik-gee-0.8.patch          | 12 ++++++++
 fontik-valac-save-temps.patch | 12 ++++++++
 fontik.desktop                |  9 ++++++
 fontik.spec                   | 65 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 98 insertions(+)
---
diff --git a/fontik.spec b/fontik.spec
new file mode 100644
index 0000000..db1b641
--- /dev/null
+++ b/fontik.spec
@@ -0,0 +1,65 @@
+%define	subver	5dbbc513
+%define	rel		1
+Summary:	A Configuration Tool for Font-wise, User-set Fontconfig Rules
+Name:		fontik
+Version:	0.6.1
+Release:	0.%{rel}.%{subver}
+License:	GPL v3
+Group:		X11/Applications
+# The source for this package was pulled from upstream's vcs.  Use the
+# following commands to generate the tarball:
+#  git clone git://gitorious.org/fontik/fontik.git
+#  cd fontik
+#  export subver=5dbbc513
+#  git archive --format tar --prefix fontik-${subver}/ ${subver} |\
+#      gzip -c > ../fontik-${subver}.tar.gz
+Source0:	http://pkgs.fedoraproject.org/repo/pkgs/fontik/%{name}-%{subver}.tar.gz/3ffed0689ff0a5c81bb53135aac38074/fontik-%{subver}.tar.gz
+# Source0-md5:	3ffed0689ff0a5c81bb53135aac38074
+Source1:	%{name}.desktop
+Patch0:		%{name}-valac-save-temps.patch
+Patch1:		%{name}-gee-0.8.patch
+URL:		http://suruma.freeflux.net/blog/archive/2009/10/14/fontik-a-font-configuration-gui.html
+BuildRequires:	desktop-file-utils
+BuildRequires:	fontconfig-devel
+BuildRequires:	gtk+2-devel
+BuildRequires:	libgee-devel
+BuildRequires:	libxml2-devel
+BuildRequires:	vala
+BuildRequires:	vala-libgee
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Fontik is basically intended to tweak and configure some properties of
+fonts. These settings are usually set system-wide while installing the
+fonts. The power of fontconfig is thus limited when it comes to the
+user.
+
+%prep
+%setup -q -n %{name}-%{subver}
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	PREFIX=%{_prefix} \
+	PROGRAM_LIBEXEC_DIR=%{_libexecdir} \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# drop pointless wrapper, use bin directly
+mv $RPM_BUILD_ROOT{%{_libdir},%{_bindir}}/fontik
+
+desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} %{SOURCE1}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING README
+%attr(755,root,root) %{_bindir}/fontik
+%{_datadir}/%{name}
+%{_desktopdir}/%{name}.desktop
diff --git a/fontik-gee-0.8.patch b/fontik-gee-0.8.patch
new file mode 100644
index 0000000..2b1f36b
--- /dev/null
+++ b/fontik-gee-0.8.patch
@@ -0,0 +1,12 @@
+diff -up fontik-5dbbc513/Makefile.geefix fontik-5dbbc513/Makefile
+--- fontik-5dbbc513/Makefile.geefix	2012-03-05 13:13:17.136741587 -0500
++++ fontik-5dbbc513/Makefile	2012-03-05 13:13:30.847591332 -0500
+@@ -19,7 +19,7 @@ PROGRAM_FILES = $(PROGRAM_SOURCES) \
+              COPYING README
+ PROGRAM_TGZ = $(PACKAGE)-$(PACKAGE_VERSION).tar.gz
+ 
+-LIBS = --pkg gtk+-2.0 --pkg gee-1.0 --pkg gmodule-2.0 --pkg libxml-2.0
++LIBS = --pkg gtk+-2.0 --pkg gee-0.8 --pkg gmodule-2.0 --pkg libxml-2.0
+ 
+ all: $(PROGRAM)
+ 
diff --git a/fontik-valac-save-temps.patch b/fontik-valac-save-temps.patch
new file mode 100644
index 0000000..78e75d1
--- /dev/null
+++ b/fontik-valac-save-temps.patch
@@ -0,0 +1,12 @@
+diff -ru fontik-8dd5b9fe7.orig/Makefile fontik-8dd5b9fe7/Makefile
+--- fontik-8dd5b9fe7.orig/Makefile	2010-09-01 17:55:44.000000000 +0900
++++ fontik-8dd5b9fe7/Makefile	2010-12-13 10:09:22.167660978 +0900
+@@ -27,7 +27,7 @@
+ 	valac --ccode $(LIBS) $^
+ 
+ $(PROGRAM): $(PROGRAM_SOURCES)
+-	valac -g $(LIBS) $^ -o $(PROGRAM)
++	valac -g --save-temps $(LIBS) $^ -o $(PROGRAM)
+ 
+ dist: $(PROGRAM_FILES)
+ 	tar -cvz $(PROGRAM_FILES) > $(PROGRAM_TGZ)
diff --git a/fontik.desktop b/fontik.desktop
new file mode 100644
index 0000000..8510465
--- /dev/null
+++ b/fontik.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Fontik
+GenericName=Fontik Fontconfig Cofiguration Tool
+Comment=Configure Font-wise, User-set Fontconfig Rules
+Exec=fontik
+#Icon=fontik
+Terminal=false
+Type=Application
+Categories=Settings;DesktopSettings;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fontik.git/commitdiff/970f7251d378edbef2349ffa6fc5b7a47e89b14c



More information about the pld-cvs-commit mailing list