Blame natus.spec

Nathaniel McCallum e4a3217
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%if 0%{?fedora} >= 15
Nathaniel McCallum e4a3217
%global _with_xulrunner 1
45a66d1
%ifarch %{ix86} x86_64 %{arm}
Nathaniel McCallum 2cdb53b
%global _with_v8 1
Nathaniel McCallum e4a3217
%endif
45a66d1
%endif
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
Name:           natus
Nathaniel McCallum 301732f
Version:        0.1.5
Nathaniel McCallum 301732f
Release:        1%{?dist}
Nathaniel McCallum e4a3217
Summary:        A robust JavaScript shell built on the Natus meta-engine
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
Group:          Development/Languages
Nathaniel McCallum e4a3217
License:        MIT
Nathaniel McCallum e4a3217
URL:            https://www.github.com/npmccallum/natus
Nathaniel McCallum e4a3217
Source0:        https://www.github.com/downloads/npmccallum/natus/natus-%{version}.tar.gz
Nathaniel McCallum e4a3217
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
BuildRequires:  readline-devel
Nathaniel McCallum e4a3217
BuildRequires:  python-devel
Nathaniel McCallum e4a3217
BuildRequires:  webkitgtk-devel
Nathaniel McCallum e4a3217
%{?_with_xulrunner:
Nathaniel McCallum e4a3217
BuildRequires:  xulrunner-devel >= 2.0
Nathaniel McCallum e4a3217
}
Nathaniel McCallum 2cdb53b
%{?_with_v8:
Nathaniel McCallum 2cdb53b
BuildRequires:  v8-devel
Nathaniel McCallum 2cdb53b
}
Nathaniel McCallum e4a3217
Nathaniel McCallum 20b7ca1
Requires: lib%{name} = %{version}-%{release}
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%description
Nathaniel McCallum e4a3217
A robust JavaScript shell built on the Natus meta-engine
Nathaniel McCallum e4a3217
Nathaniel McCallum 20b7ca1
%package -n lib%{name}
Nathaniel McCallum e4a3217
Summary: Libraries for embedding the Natus meta-engine
Nathaniel McCallum e4a3217
Group: Development/Languages
Nathaniel McCallum f67485f
Requires: lib%{name}-engine = %{version}-%{release}
Nathaniel McCallum 20b7ca1
Provides: %{name}-libs = %{version}-%{release}
Nathaniel McCallum 20b7ca1
Obsoletes: %{name}-libs < 0.1.3-4
Nathaniel McCallum e4a3217
Nathaniel McCallum 20b7ca1
%description -n lib%{name}
Nathaniel McCallum e4a3217
Libraries for embedding the Natus meta-engine
Nathaniel McCallum e4a3217
Nathaniel McCallum 20b7ca1
%package -n lib%{name}-devel
Nathaniel McCallum e4a3217
Summary: Development files for embedding the Natus meta-engine
Nathaniel McCallum e4a3217
Group: Development/Languages
Nathaniel McCallum 20b7ca1
Requires: lib%{name} = %{version}-%{release}
Nathaniel McCallum e4a3217
Requires: pkgconfig
Nathaniel McCallum 20b7ca1
Provides: %{name}-libs-devel = %{version}-%{release}
Nathaniel McCallum 20b7ca1
Obsoletes: %{name}-libs-devel < 0.1.3-4
Nathaniel McCallum e4a3217
Nathaniel McCallum 20b7ca1
%description -n lib%{name}-devel
Nathaniel McCallum e4a3217
Development files for embedding the Natus meta-engine
Nathaniel McCallum e4a3217
Nathaniel McCallum f67485f
%package -n lib%{name}-JavaScriptCore
Nathaniel McCallum e4a3217
Summary: JavaScriptCore engine for Natus
Nathaniel McCallum e4a3217
Group: Development/Languages
Nathaniel McCallum 20b7ca1
Requires: lib%{name} = %{version}-%{release}
Nathaniel McCallum f67485f
Provides: lib%{name}-engine = %{version}-%{release}
Nathaniel McCallum f67485f
Nathaniel McCallum e4a3217
Provides: %{name}-engine = %{version}-%{release}
Nathaniel McCallum f67485f
Obsoletes: %{name}-engine-JavaScriptCore < 0.1.3-5
Nathaniel McCallum e4a3217
Nathaniel McCallum f67485f
%description -n lib%{name}-JavaScriptCore
Nathaniel McCallum e4a3217
JavaScriptCore engine for Natus
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%{?_with_xulrunner:
Nathaniel McCallum f67485f
%package -n lib%{name}-SpiderMonkey
Nathaniel McCallum e4a3217
Summary: SpiderMonkey engine for Natus
Nathaniel McCallum e4a3217
Group: Development/Languages
Nathaniel McCallum 20b7ca1
Requires: lib%{name} = %{version}-%{release}
Nathaniel McCallum f67485f
Provides: lib%{name}-engine = %{version}-%{release}
Nathaniel McCallum f67485f
Nathaniel McCallum e4a3217
Provides: %{name}-engine = %{version}-%{release}
Nathaniel McCallum f67485f
Obsoletes: %{name}-engine-SpiderMonkey < 0.1.3-5
Nathaniel McCallum e4a3217
Nathaniel McCallum f67485f
%description -n lib%{name}-SpiderMonkey
Nathaniel McCallum e4a3217
SpiderMonkey engine for Natus
Nathaniel McCallum e4a3217
}
Nathaniel McCallum e4a3217
Nathaniel McCallum 2cdb53b
%{?_with_v8:
Nathaniel McCallum f67485f
%package -n lib%{name}-V8
Nathaniel McCallum 2cdb53b
Summary: V8 engine for Natus
Nathaniel McCallum 2cdb53b
Group: Development/Languages
Nathaniel McCallum 20b7ca1
Requires: lib%{name} = %{version}-%{release}
Nathaniel McCallum f67485f
Provides: lib%{name}-engine = %{version}-%{release}
Nathaniel McCallum f67485f
Nathaniel McCallum 2cdb53b
Provides: %{name}-engine = %{version}-%{release}
Nathaniel McCallum f67485f
Obsoletes: %{name}-engine-V8 < 0.1.3-5
Nathaniel McCallum 2cdb53b
Nathaniel McCallum f67485f
%description -n lib%{name}-V8
Nathaniel McCallum 2cdb53b
V8 engine for Natus
Nathaniel McCallum 2cdb53b
}
Nathaniel McCallum 2cdb53b
Nathaniel McCallum e4a3217
%package python
Nathaniel McCallum e4a3217
Summary: Python module for Natus
Nathaniel McCallum e4a3217
Group: Development/Languages
Nathaniel McCallum 20b7ca1
Requires: lib%{name} = %{version}-%{release}
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%description python
Nathaniel McCallum e4a3217
Python module for Natus
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%package -n python-natus
Nathaniel McCallum e4a3217
Summary: Natus JavaScript module for Python
Nathaniel McCallum e4a3217
Group: Development/Languages
Nathaniel McCallum 20b7ca1
Requires: lib%{name} = %{version}-%{release}
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%description -n python-natus
Nathaniel McCallum e4a3217
Natus JavaScript module for Python
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%prep
Nathaniel McCallum e4a3217
%setup -q
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%build
Nathaniel McCallum e4a3217
%configure
Nathaniel McCallum c825502
make %{?_smp_mflags}
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%install
Nathaniel McCallum e4a3217
rm -rf $RPM_BUILD_ROOT
Nathaniel McCallum e4a3217
make install DESTDIR=$RPM_BUILD_ROOT
Nathaniel McCallum 3199245
find $RPM_BUILD_ROOT/%{_libdir} -name '*.la' -delete
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%clean
Nathaniel McCallum e4a3217
rm -rf $RPM_BUILD_ROOT
Nathaniel McCallum e4a3217
Nathaniel McCallum 20b7ca1
%post -n lib%{name} -p /sbin/ldconfig
Nathaniel McCallum e4a3217
Nathaniel McCallum 20b7ca1
%postun -n lib%{name} -p /sbin/ldconfig
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%files
Nathaniel McCallum e4a3217
%defattr(-,root,root,-)
Nathaniel McCallum e4a3217
%{_bindir}/natus
Nathaniel McCallum e4a3217
Nathaniel McCallum 20b7ca1
%files -n lib%{name}
Nathaniel McCallum e4a3217
%defattr(-,root,root,-)
Nathaniel McCallum e4a3217
%doc ChangeLog COPYING AUTHORS README
Nathaniel McCallum e4a3217
%{_libdir}/lib%{name}.so*
Nathaniel McCallum e4a3217
%{_libdir}/%{name}
Nathaniel McCallum e4a3217
%exclude %{_libdir}/lib%{name}.so
Nathaniel McCallum e4a3217
%exclude %{_libdir}/%{name}/%{version}/modules/python.so
Nathaniel McCallum c825502
%exclude %{_libdir}/%{name}/%{version}/engines/*
Nathaniel McCallum e4a3217
Nathaniel McCallum 20b7ca1
%files -n lib%{name}-devel
Nathaniel McCallum e4a3217
%defattr(-,root,root,-)
Nathaniel McCallum e4a3217
%{_includedir}/%{name}
Nathaniel McCallum e4a3217
%{_libdir}/lib%{name}.so
Nathaniel McCallum e4a3217
%{_libdir}/pkgconfig/%{name}.pc
Nathaniel McCallum e4a3217
Nathaniel McCallum f67485f
%files -n lib%{name}-JavaScriptCore
Nathaniel McCallum e4a3217
%defattr(-,root,root,-)
Nathaniel McCallum c825502
%{_libdir}/%{name}/%{version}/engines/JavaScriptCore.so
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%{?_with_xulrunner:
Nathaniel McCallum f67485f
%files -n lib%{name}-SpiderMonkey
Nathaniel McCallum e4a3217
%defattr(-,root,root,-)
Nathaniel McCallum c825502
%{_libdir}/%{name}/%{version}/engines/SpiderMonkey.so
Nathaniel McCallum e4a3217
}
Nathaniel McCallum e4a3217
Nathaniel McCallum 2cdb53b
%{?_with_v8:
Nathaniel McCallum f67485f
%files -n lib%{name}-V8
Nathaniel McCallum 2cdb53b
%defattr(-,root,root,-)
Nathaniel McCallum c825502
%{_libdir}/%{name}/%{version}/engines/V8.so
Nathaniel McCallum 2cdb53b
}
Nathaniel McCallum 2cdb53b
Nathaniel McCallum e4a3217
%files python
Nathaniel McCallum e4a3217
%defattr(-,root,root,-)
Nathaniel McCallum e4a3217
%{_libdir}/%{name}/%{version}/modules/python.so
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%files -n python-natus
Nathaniel McCallum e4a3217
%defattr(-,root,root,-)
Nathaniel McCallum e4a3217
%{python_sitearch}/%{name}.so
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
%changelog
Nathaniel McCallum 301732f
* Mon Feb 07 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1.5-1
Nathaniel McCallum 301732f
- Update to 0.1.5
Nathaniel McCallum 301732f
Nathaniel McCallum 3199245
* Sun Feb 06 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1.4-2
Nathaniel McCallum 3199245
- Remove *.la files
Nathaniel McCallum 3199245
Nathaniel McCallum c825502
* Sun Feb 06 2011 Nathaniel McCallum - 0.1.4-1
Nathaniel McCallum c825502
- Update to 0.1.4
Nathaniel McCallum c825502
- Remove upstreamed fixes
Nathaniel McCallum c825502
- Re-enable smp build
Nathaniel McCallum c825502
45a66d1
* Fri Dec 24 2010 Dan HorĂ¡k <dan[at]danny.cz> - 0.1.3-7
45a66d1
- v8 is available on selected architectures
45a66d1
Nathaniel McCallum f67485f
* Thu Dec 23 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1.3-6
Nathaniel McCallum f67485f
- Rename engines
Nathaniel McCallum f67485f
Nathaniel McCallum d878492
* Thu Dec 23 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1.3-5
Nathaniel McCallum d878492
- Really fix SpiderMonkey this time
Nathaniel McCallum d878492
Nathaniel McCallum 20b7ca1
* Thu Dec 23 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1.3-4
Nathaniel McCallum 20b7ca1
- Rename natus-libs -> libnatus, natus-libs-devel -> libnatus-devel
Nathaniel McCallum 20b7ca1
- Apply upstream fix for deprecated symbol in SpiderMonkey
Nathaniel McCallum 20b7ca1
Nathaniel McCallum 2cdb53b
* Thu Dec 23 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1.3-3
Nathaniel McCallum 2cdb53b
- Enable the V8 engine on Fedora >=15
Nathaniel McCallum 2cdb53b
Nathaniel McCallum e4a3217
* Sun Dec 12 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1.3-2
Nathaniel McCallum e4a3217
- Added pkgconfig requires to -devel
Nathaniel McCallum e4a3217
Nathaniel McCallum e4a3217
* Sat Dec 11 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1.3-1
Nathaniel McCallum e4a3217
- First package