diff --git a/.gitignore b/.gitignore index e69de29..5baf6ce 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libtimezonemap_0.4.1.tar.gz diff --git a/libtimezonemap-fsf-address.patch b/libtimezonemap-fsf-address.patch new file mode 100644 index 0000000..dc43d12 --- /dev/null +++ b/libtimezonemap-fsf-address.patch @@ -0,0 +1,68 @@ +=== modified file 'src/cc-timezone-map.c' +--- src/cc-timezone-map.c 2013-11-05 11:31:07 +0000 ++++ src/cc-timezone-map.c 2013-11-13 21:02:55 +0000 +@@ -15,9 +15,9 @@ + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * +- * You should have received a copy of the GNU General Public License +- * along with this program; if not, write to the Free Software +- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++ * You should have received a copy of the GNU General Public License along ++ * with this program; if not, write to the Free Software Foundation, Inc., ++ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Author: Thomas Wood + * + +=== modified file 'src/cc-timezone-map.h' +--- src/cc-timezone-map.h 2012-11-06 17:14:04 +0000 ++++ src/cc-timezone-map.h 2013-11-13 21:03:57 +0000 +@@ -11,9 +11,9 @@ + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * +- * You should have received a copy of the GNU General Public License +- * along with this program; if not, write to the Free Software +- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++ * You should have received a copy of the GNU General Public License along ++ * with this program; if not, write to the Free Software Foundation, Inc., ++ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Author: Thomas Wood + * + +=== modified file 'src/tz.c' +--- src/tz.c 2013-11-05 11:31:07 +0000 ++++ src/tz.c 2013-11-13 21:04:28 +0000 +@@ -17,9 +17,9 @@ + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * +- * You should have received a copy of the GNU General Public License +- * along with this program; if not, write to the Free Software +- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. ++ * You should have received a copy of the GNU General Public License along ++ * with this program; if not, write to the Free Software Foundation, Inc., ++ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + + + +=== modified file 'src/tz.h' +--- src/tz.h 2013-11-05 09:49:32 +0000 ++++ src/tz.h 2013-11-13 21:04:35 +0000 +@@ -17,9 +17,9 @@ + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * +- * You should have received a copy of the GNU General Public License +- * along with this program; if not, write to the Free Software +- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. ++ * You should have received a copy of the GNU General Public License along ++ * with this program; if not, write to the Free Software Foundation, Inc., ++ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + + + diff --git a/libtimezonemap.spec b/libtimezonemap.spec new file mode 100644 index 0000000..661796a --- /dev/null +++ b/libtimezonemap.spec @@ -0,0 +1,66 @@ +Name: libtimezonemap +Version: 0.4.1 +Release: 1%{?dist} +Summary: Time zone map widget for Gtk+ + +Group: System Environment/Libraries +License: GPLv3 +URL: https://launchpad.net/timezonemap +Source0: http://archive.ubuntu.com/ubuntu/pool/main/libt/libtimezonemap/%{name}_%{version}.tar.gz +Patch0: libtimezonemap-fsf-address.patch + +BuildRequires: glib2-devel >= 2.26 +BuildRequires: gtk3-devel >= 3.1.4 +BuildRequires: json-glib-devel +BuildRequires: gobject-introspection-devel +BuildRequires: gnome-common + +%description +libtimezonemap is a time zone map widget for Gtk+. The widget displays a world +map with a highlighted region representing the selected time zone, and the +location can be changed by clicking on the map. + +This library is a fork of the of the code from gnome-control-center's datetime +panel, which was itself a fork of Ubiquity's timezone map. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +libtimezonemap is a time zone map widget for Gtk+. This package contains header +files used for building applications that use %{name}. + +%prep +%setup -q +%patch0 -p0 + +%build +./autogen.sh +%configure +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +rm -f %{buildroot}%{_libdir}/*.la + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc COPYING README TODO +%{_libdir}/libtimezonemap.so.* +%{_libdir}/girepository-1.0/TimezoneMap-1.0.typelib +%{_datadir}/%{name} + +%files devel +%{_libdir}/libtimezonemap.so +%{_libdir}/pkgconfig/timezonemap.pc +%{_includedir}/timezonemap +%{_datadir}/gir-1.0/TimezoneMap-1.0.gir + +%changelog +* Thu Nov 14 2013 David Shea - 0.4.1-1 +- Initial version diff --git a/sources b/sources index e69de29..7da5dc4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +79da327a7473b24c32d588db33831848 libtimezonemap_0.4.1.tar.gz