Bug 14705 - Request to create packages of Brackets software
Summary: Request to create packages of Brackets software
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: Mageia 5
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-01 22:01 CET by Egoitz Rodriguez
Modified: 2022-05-08 16:11 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Egoitz Rodriguez 2014-12-01 22:01:43 CET
Description of problem:

Request to create the packages needed to enjoy this software.

Brackets is like Windows or Mac Dreamweaver from Adobe. Is a free open-source editor written in HTML, CSS, and JavaScript with a primary focus on Web Development. It was created by Adobe Systems, licensed under the MIT License.

Brackets source code: https://github.com/adobe/brackets


Reproducible: 

Steps to Reproduce:
Egoitz Rodriguez 2014-12-01 22:02:17 CET

Target Milestone: --- => Mageia 5

Egoitz Rodriguez 2014-12-02 08:44:49 CET

Hardware: x86_64 => All

Comment 1 Egoitz Rodriguez 2014-12-05 18:04:04 CET
I build with this spec code

Name: brackets
Version: 1.0
Release: 1%{?dist}
Summary: An open source code editor for the web, written in JavaScript, HTML and CSS.
Group: Development/Tools
License: MIT
URL: http://brackets.io/
# The sources for this package were pulled from upstream's vcs.
# Use the fetch_source.sh to download them.
Source0: brackets-shell-%{version}.tar.gz
Source1: brackets-%{version}.tar.gz
Requires: nodejs, gtk2, alsa-lib, GConf2, libgcrypt
BuildRequires: %{requires}, gtk2-devel, npm, nspr, gyp, desktop-file-utils
AutoReqProv: no
%global _enable_debug_package 0
%global debug_package %{nil}
%global __os_install_post /usr/lib/rpm/brp-compress %{nil}
%description
%prep
%setup -n brackets-shell
%setup -T -D -b 1 -n brackets
%build
%ifarch x86_64
LD_PRELOAD=/usr/lib64/libudev.so.1
%else
LD_PRELOAD=/usr/lib/libudev.so.1
%endif
cd %{_builddir}/brackets
npm install && npm install grunt-cli
./node_modules/.bin/grunt clean less targethtml useminPrepare htmlmin requirejs concat copy usemin
cp -a src/config.json dist/config.json
cd %{_builddir}/brackets-shell
npm install && npm install grunt-cli
./node_modules/.bin/grunt setup full-build
%install
mkdir --parents %{buildroot}%{_datadir}/%{name}
cp -a %{_builddir}/brackets-shell/installer/linux/debian/package-root/opt/brackets/. %{buildroot}%{_datadir}/%{name}
cp -a %{_builddir}/brackets-shell/installer/linux/debian/package-root/usr/share/icons %{buildroot}%{_datadir}/
mkdir --parents %{buildroot}%{_bindir}
ln -sf %{_datadir}/%{name}/brackets %{buildroot}%{_bindir}/%{name}
mkdir --parents %{buildroot}%{_datadir}/applications
cat <<EOT >> %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Brackets
Type=Application
Categories=Development
Exec=brackets %U
Icon=brackets
MimeType=text/html;
Keywords=Text;Editor;Write;Web;Development;
EOT
desktop-file-install --mode 0644 %{buildroot}%{_datadir}/applications/%{name}.desktop
%ifarch x86_64
ln -sf /usr/lib64/libudev.so.1 %{buildroot}%{_datadir}/%{name}/libudev.so.0
%else
ln -sf /usr/lib/libudev.so.1 %{buildroot}%{_datadir}/%{name}/libudev.so.0
%endif
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
/usr/bin/update-desktop-database &> /dev/null || :
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/*/*/*/*.svg
%attr(755, root, root) %{_datadir}/%{name}/brackets
%attr(755, root, root) %{_datadir}/%{name}/Brackets
%attr(755, root, root) %{_datadir}/%{name}/Brackets-node
%attr(755, root, root) %{_bindir}/%{name}
%changelog
Comment 2 Samuel Verschelde 2016-10-11 20:56:24 CEST
Assigning this package request to all packagers collectively. On a voluntary basis, one of them might want to integrate it to the distribution and maintain it for bug and security fixes.

You might also want to join the packager team to maintain this piece of software: see https://wiki.mageia.org/en/Becoming_a_Mageia_Packager

Assignee: bugsquad => pkg-bugs

Helge Hielscher 2017-09-14 22:14:45 CEST

CC: (none) => hhielscher

Comment 3 Kristoffer Grundström 2021-06-02 03:09:31 CEST
(In reply to Egoitz Rodriguez from comment #1)
> I build with this spec code
> 
> Name: brackets
> Version: 1.0
> Release: 1%{?dist}
> Summary: An open source code editor for the web, written in JavaScript, HTML
> and CSS.
> Group: Development/Tools
> License: MIT
> URL: http://brackets.io/
> # The sources for this package were pulled from upstream's vcs.
> # Use the fetch_source.sh to download them.
> Source0: brackets-shell-%{version}.tar.gz
> Source1: brackets-%{version}.tar.gz
> Requires: nodejs, gtk2, alsa-lib, GConf2, libgcrypt
> BuildRequires: %{requires}, gtk2-devel, npm, nspr, gyp, desktop-file-utils
> AutoReqProv: no
> %global _enable_debug_package 0
> %global debug_package %{nil}
> %global __os_install_post /usr/lib/rpm/brp-compress %{nil}
> %description
> %prep
> %setup -n brackets-shell
> %setup -T -D -b 1 -n brackets
> %build
> %ifarch x86_64
> LD_PRELOAD=/usr/lib64/libudev.so.1
> %else
> LD_PRELOAD=/usr/lib/libudev.so.1
> %endif
> cd %{_builddir}/brackets
> npm install && npm install grunt-cli
> ./node_modules/.bin/grunt clean less targethtml useminPrepare htmlmin
> requirejs concat copy usemin
> cp -a src/config.json dist/config.json
> cd %{_builddir}/brackets-shell
> npm install && npm install grunt-cli
> ./node_modules/.bin/grunt setup full-build
> %install
> mkdir --parents %{buildroot}%{_datadir}/%{name}
> cp -a
> %{_builddir}/brackets-shell/installer/linux/debian/package-root/opt/brackets/
> . %{buildroot}%{_datadir}/%{name}
> cp -a
> %{_builddir}/brackets-shell/installer/linux/debian/package-root/usr/share/
> icons %{buildroot}%{_datadir}/
> mkdir --parents %{buildroot}%{_bindir}
> ln -sf %{_datadir}/%{name}/brackets %{buildroot}%{_bindir}/%{name}
> mkdir --parents %{buildroot}%{_datadir}/applications
> cat <<EOT >> %{buildroot}%{_datadir}/applications/%{name}.desktop
> [Desktop Entry]
> Name=Brackets
> Type=Application
> Categories=Development
> Exec=brackets %U
> Icon=brackets
> MimeType=text/html;
> Keywords=Text;Editor;Write;Web;Development;
> EOT
> desktop-file-install --mode 0644
> %{buildroot}%{_datadir}/applications/%{name}.desktop
> %ifarch x86_64
> ln -sf /usr/lib64/libudev.so.1 %{buildroot}%{_datadir}/%{name}/libudev.so.0
> %else
> ln -sf /usr/lib/libudev.so.1 %{buildroot}%{_datadir}/%{name}/libudev.so.0
> %endif
> %post
> /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
> /usr/bin/update-desktop-database &> /dev/null || :
> %postun
> if [ $1 -eq 0 ] ; then
> /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
> /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
> fi
> /usr/bin/update-desktop-database &> /dev/null || :
> %posttrans
> /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
> %files
> %dir %{_datadir}/%{name}/
> %{_datadir}/%{name}/*
> %{_datadir}/applications/%{name}.desktop
> %{_datadir}/icons/*/*/*/*.svg
> %attr(755, root, root) %{_datadir}/%{name}/brackets
> %attr(755, root, root) %{_datadir}/%{name}/Brackets
> %attr(755, root, root) %{_datadir}/%{name}/Brackets-node
> %attr(755, root, root) %{_bindir}/%{name}
> %changelog

Please don't add it in the comment section.
Add it as an attachment to this report.

CC: (none) => lovaren

Comment 4 sturmvogel 2022-05-08 16:11:07 CEST
Last release is from 2020 and after that the complete code got archived because quote from GitHub: "On September 1, 2021, Adobe will end support for Brackets."

(BTW this software has 2620 open issues on GitHub :D)

Closing as WONTFIX.

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX


Note You need to log in before you can comment on or make changes to this bug.