diff --git a/README.md b/README.md index fda51f9..a7981d6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ajantv2 +AJA NTV2 Open Source Static Libs and Headers. + diff --git a/ajantv2.spec b/ajantv2.spec new file mode 100644 index 0000000..59ed8b2 --- /dev/null +++ b/ajantv2.spec @@ -0,0 +1,88 @@ +%define gitver %(echo %version | tr _ -) +Name: ajantv2 +Version: 16.2_bugfix5 +Release: 1mamba +Summary: AJA NTV2 Open Source Static Libs and Headers +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/aja-video/ntv2 +Source: https://github.com/aja-video/ntv2.git/v%{gitver}/ntv2-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +AJA NTV2 Open Source Static Libs and Headers. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n ntv2-%{version} + +%build +%cmake -d build \ + -DAJA_BUILD_OPENSOURCE=ON \ + -DAJA_BUILD_APPS=ON \ + -DAJA_BUILD_SHARED=ON \ + -DAJA_INSTALL_HEADERS=ON + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libajantv2_.so +%doc LICENSE + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/ajadriver +%{_includedir}/ajadriver/*.h +%dir %{_includedir}/ajadriver/linux +%{_includedir}/ajadriver/linux/*.h +%dir %{_includedir}/ajalibraries +%{_includedir}/ajalibraries/* +%{_libdir}/libajantv2.a +%doc README.md + +%changelog +* Tue Sep 13 2022 Silvan Calarco 16.2_bugfix5-1mamba +- package created using the webbuild interface