[fontik/f14/master] Import fontik.

Daiki Ueno ueno at fedoraproject.org
Mon Aug 30 01:03:15 UTC 2010


commit b0f37c46e7fd78a53c088ee5509b833f04d05dd9
Author: Daiki Ueno <ueno at unixuser.org>
Date:   Mon Aug 30 10:04:53 2010 +0900

    Import fontik.

 .gitignore            |    1 +
 fontik-makefile.patch |   55 +++++++++++++++++++++++++++++++++++++++++
 fontik.desktop        |    9 +++++++
 fontik.spec           |   65 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 5 files changed, 131 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a9193bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fontik-8e8cea81d.tar.gz
diff --git a/fontik-makefile.patch b/fontik-makefile.patch
new file mode 100644
index 0000000..8ef3c79
--- /dev/null
+++ b/fontik-makefile.patch
@@ -0,0 +1,55 @@
+diff --git a/Makefile b/Makefile
+index 743592f..61454ca 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,6 +9,10 @@ PROGRAM_UI = fontik.ui
+ 
+ PROGRAM_DIR = $(PREFIX)/share/fontik
+ PROGRAM_BIN_DIR = $(PREFIX)/bin
++PROGRAM_LIBEXEC_DIR = $(PREFIX)/libexec/fontik
++INSTALL_PROGRAM_DIR = $(DESTDIR)$(PROGRAM_DIR)
++INSTALL_PROGRAM_BIN_DIR = $(DESTDIR)$(PROGRAM_BIN_DIR)
++INSTALL_PROGRAM_LIBEXEC_DIR = $(DESTDIR)$(PROGRAM_LIBEXEC_DIR)
+ PROGRAM_FILES = $(PROGRAM_SOURCES) \
+              $(PROGRAM_UI) \
+              Makefile \
+@@ -17,27 +21,29 @@ PROGRAM_TGZ = $(PACKAGE)-$(PACKAGE_VERSION).tar.gz
+ 
+ LIBS = --pkg gtk+-2.0 --pkg gee-1.0 --pkg gmodule-2.0 --pkg libxml-2.0
+ 
+-all: binary
++all: $(PROGRAM)
+ 
+ ccode: $(PROGRAM_SOURCES)
+ 	valac --ccode $(LIBS) $^
+ 
+-binary: $(PROGRAM_SOURCES)
+-	valac $(LIBS) $^ -o $(PROGRAM)
++$(PROGRAM): $(PROGRAM_SOURCES)
++	valac -g $(LIBS) $^ -o $(PROGRAM)
+ 
+ dist: $(PROGRAM_FILES)
+ 	tar -cvz $(PROGRAM_FILES) > $(PROGRAM_TGZ)
+ 
+ install: all
+-	mkdir -p $(PROGRAM_DIR)
+-	cp $(PROGRAM_UI) $(PROGRAM_DIR)
+-	cp $(PROGRAM) $(PROGRAM_DIR)
+-	echo "#!/bin/bash\ncd $(PROGRAM_DIR)\nexec $(PROGRAM_DIR)/$(PROGRAM)" > $(PROGRAM_BIN_DIR)/$(PROGRAM)
+-	chmod +x $(PROGRAM_BIN_DIR)/$(PROGRAM)
++	mkdir -p $(INSTALL_PROGRAM_DIR) $(INSTALL_PROGRAM_BIN_DIR) \
++		$(INSTALL_PROGRAM_LIBEXEC_DIR)
++	cp $(PROGRAM_UI) $(INSTALL_PROGRAM_DIR)
++	cp $(PROGRAM) $(INSTALL_PROGRAM_LIBEXEC_DIR)/$(PROGRAM)
++	echo -e "#!/bin/sh\ncd $(PROGRAM_DIR)\nexec $(PROGRAM_LIBEXEC_DIR)/$(PROGRAM)" > $(INSTALL_PROGRAM_BIN_DIR)/$(PROGRAM)
++	chmod +x $(INSTALL_PROGRAM_BIN_DIR)/$(PROGRAM)
+ 
+ uninstall:
+-	rm -rf $(PROGRAM_DIR)
+-	rm -f $(PROGRAM_BIN_DIR)/$(PROGRAM)
++	rm -rf $(INSTALL_PROGRAM_DIR)
++	rm -f $(INSTALL_PROGRAM_BIN_DIR)/$(PROGRAM)
++	rm -rf $(INSTALL_PROGRAM_LIBEXEC_DIR)
+ 
+ clean:
+ 	rm -f *.c $(PROGRAM)
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;
diff --git a/fontik.spec b/fontik.spec
new file mode 100644
index 0000000..f303e70
--- /dev/null
+++ b/fontik.spec
@@ -0,0 +1,65 @@
+%global		fontikcommit	8e8cea81d
+Name:		fontik
+Version:	0
+Release:	0.2.20100825git%{fontikcommit}%{?dist}
+Summary:	A Configuration Tool for Font-wise, User-set Fontconfig Rules
+
+Group:		User Interface/X
+License:	GPLv3
+URL:		http://suruma.freeflux.net/blog/archive/2009/10/14/fontik-a-font-configuration-gui.html
+# 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 fontikcommit=8e8cea81d
+#  git archive --format tar --prefix fontik-${fontikcommit}/ ${fontikcommit} |\
+#      gzip -c > ../fontik-${fontikcommit}.tar.gz
+Source0:	%{name}-%{fontikcommit}.tar.gz
+Source1:	%{name}.desktop
+Patch0:		%{name}-makefile.patch
+
+BuildRequires:	libgee-devel
+BuildRequires:	libxml2-devel
+BuildRequires:	fontconfig-devel
+BuildRequires:	desktop-file-utils
+
+%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}-%{fontikcommit}
+%patch0 -p1 -b .makefile
+
+
+%build
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix}
+
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
+%{SOURCE1}
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README
+%{_bindir}/fontik*
+%{_datadir}/fontik/
+%{_libexecdir}/fontik/
+%{_datadir}/applications/%{name}.desktop
+
+
+%changelog
+* Thu Aug 26 2010 Daiki Ueno <dueno at redhat.com> - 0-0.2.20100825git8e8cea81d
+- simplify %%description
+- use %%{_prefix} in %%install
+- omit "rm -rf $RPM_BUILD_ROOT"
+
+* Wed Aug 25 2010 Daiki Ueno <dueno at redhat.com> - 0-0.1.20100825git8e8cea81d
+- initial packaging for Fedora
+
diff --git a/sources b/sources
index e69de29..9e75a49 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5495b8a791de4646080ea966fb99085f  fontik-8e8cea81d.tar.gz


More information about the scm-commits mailing list