Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:awissu
brackets
brackets.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File brackets.spec of Package brackets
# # spec file for package brackets # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %ifarch %ix86 %define bit 32 %else %define bit 64 %endif %define _use_internal_dependency_generator 0 %define __find_provides sh %{SOURCE98} %define __find_requires sh %{SOURCE99} Name: brackets Version: 1.12 Release: 0 Summary: An open source code editor for the web License: MIT Group: Development/Tools/Other Url: http://brackets.io Source0: Brackets.Release.%{version}.%{bit}-bit.deb Source1: https://github.com/adobe/brackets/releases/download/release-%{version}/Brackets.Release.%{version}.32-bit.deb Source2: https://github.com/adobe/brackets/releases/download/release-%{version}/Brackets.Release.%{version}.64-bit.deb Source98: find_internal_provides.sh Source99: find_external_requires.sh BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(libudev) Requires: nodejs ExclusiveArch: %ix86 x86_64 %description A modern, open source text editor that understands web design. With focused visual tools and preprocessor support, Brackets is a modern text editor that makes it easy to design in the browser. This is a repackaged deb package. %prep %setup -q -c -T ar -x %{SOURCE0} tar -xf data.tar.xz cp --no-preserve mode .%{_datadir}/doc/%{name}/copyright COPYING rm -rf .%{_datadir}/{menu,doc} sed -e '/Exec/s|[/].*%{name}|%{_libdir}/%{name}/%{name}|' \ -i $(find . -name "%{name}.desktop") find . -regex ".*\(\.c\|\.h\|\.cpp\|\~\|\/\..*\)" | xargs rm -rf %build # Nothing to build. %install install -d %{buildroot}{%{_bindir},%{_libdir},%{_datadir}} cp -r ./opt/%{name} %{buildroot}%{_libdir} ln -s %{_libdir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name} cp -r .%{_datadir}/* %{buildroot}%{_datadir} pushd %{buildroot}%{_libdir}/%{name} for i in $(find . -maxdepth 1 -name \*[0-9].png); do s=$(echo $i|sed 's/[^0-9]//g') install -Dm0644 $i %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png done popd %suse_update_desktop_file -i -r %{name} Network WebDevelopment find %{buildroot}%{_libdir} -name \*.desktop -exec rm -f {} \; %fdupes %{buildroot}%{_libdir} %post %desktop_database_post %icon_theme_cache_post %postun %desktop_database_postun %icon_theme_cache_postun %files %defattr(-,root,root) %doc COPYING %{_bindir}/%{name} %{_libdir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.??g %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor