%if 0%{?suse_version} %global apachedocroot /srv/www/htdocs %else %global apachedocroot %{_var}/www/html %endif Name: jquery-timepicker Version: 1.3.3 Release: 3%{?dist} Summary: A lightweight, customizable jQuery timepicker plugin inspired by Google Calendar. License: Apache Software License v2 URL: http://jonthornton.github.io/jquery-timepicker/ Source0: https://github.com/jonthornton/jquery-timepicker/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch %description A lightweight, customizable jQuery timepicker plugin inspired by Google Calendar. %prep %setup -q %build %install rm -rf %{buildroot} install -d -m 755 %{buildroot}%{apachedocroot}/css install -d -m 755 %{buildroot}%{apachedocroot}/javascript install -m 644 jquery.timepicker.css %{buildroot}%{apachedocroot}/css/ install -m 644 jquery.timepicker.js %{buildroot}%{apachedocroot}/javascript/ %clean rm -rf %{buildroot} %files %{apachedocroot}/css/* %{apachedocroot}/javascript/* %if 0%{?suse_version} %dir %{apachedocroot}/css %dir %{apachedocroot}/javascript %endif %changelog * Fri Feb 09 2018 Michael Mraka 1.3.3-3 - removed %%%%defattr from specfile - removed Group from specfile - removed BuildRoot from specfiles * Tue May 10 2016 Grant Gainey 1.3.3-2 - jquery-timepicker: build on openSUSE * Fri Feb 14 2014 Michael Mraka 1.3.3-1 - initial build of jquery-timepicker